import axios from 'axios';

export function getGoodsSpecPage(params: any) {
  return axios.get('/mall/goodsspec/page', { params });
}

export function addGoodsSpec(data: any) {
  return axios.post('/mall/goodsspec', data);
}

export function updateGoodsSpec(data: any) {
  return axios.put('/mall/goodsspec', data);
}

/**
 *  需要将单引号'，换成反单引号`
 */
export function deleteGoodsSpec(id: string) {
  return axios.delete(`/mall/goodsspec/${id}`);
}
